package com.itwlj.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GoodsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    //商品id
    private Long id;

    //商品名称
    private String name;

    //子分类id
    private Long subCategoryId;

    //商品spu编码
    private String spuCode;

    //描述
    private String desc;

    //价格
    private BigDecimal price;

    //原价
    private BigDecimal oldPrice;

    //品牌
    private String brand;

    //图片
    private String picture;

    //状态
    private Integer status;

    //商品销量
    private Long salesCount;

    //商品评论总数
    private Long commentCount;

    //商品收藏总数
    private Long collectCount;

    //更新时间
    private LocalDateTime updateTime;

    //子分类名称
    private String subCategoryName;

    //规格集合
    private List<SpecVO> specList;
}
